package com.dtp.demo.controller;

import com.dtp.core.DtpUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author evolution
 * @title: DtpTestController
 * @projectName dtp-nacos
 * @description: TODO
 * @date 2022-10-20 11:40
 */
@RestController
public class DtpTestController {
    
    @GetMapping("/hello")
    public Integer test() throws InterruptedException {
        return DtpUtil.get("q1").getCorePoolSize();
    }
    
    
    @GetMapping("/hello1")
    public Integer test1() throws InterruptedException {
        return DtpUtil.get("q2").getCorePoolSize();
    }
    
}
